package routers

import (
	controllers "macapp/controllers/admin"

	"github.com/astaxie/beego"
)

func init() {
	beego.Router("/admin", &controllers.AdminloginController{}, "*:Login")
	beego.Router("/admin/index", &controllers.AdminindexController{}, "*:Index")
	beego.Router("/admin/welcome", &controllers.AdminWelcomeController{}, "*:Welcome")
	beego.Router("/admin/syssetting", &controllers.AdminSyssetController{}, "*:Index")

	beego.Router("/admin/camille", &controllers.AdminCamilleController{}, "*:Index")
	beego.Router("/admin/camille/add", &controllers.AdminCamilleController{}, "*:Add")
	beego.Router("/admin/camille/api/addapi", &controllers.AdminCamilleController{}, "*:AddApi")
	beego.Router("/admin/camille/api/getall", &controllers.AdminCamilleController{}, "*:GetAll")

	beego.Router("/admin/users", &controllers.AdminUsersController{}, "*:Index")
	beego.Router("/admin/users/api/getall", &controllers.AdminUsersController{}, "*:GetAll")
	beego.Router("/admin/users/api/edit/:userjson", &controllers.AdminUsersController{}, "*:Edit")
	beego.Router("/admin/users/api/update", &controllers.AdminUsersController{}, "*:Update")

	beego.Router("/admin/classification", &controllers.AdminClassificationController{}, "*:Index")
	beego.Router("/admin/classification/api/getall", &controllers.AdminClassificationController{}, "*:GetAll")
	beego.Router("/admin/classification/add", &controllers.AdminClassificationController{}, "*:Add")
	beego.Router("/admin/classification/api/add", &controllers.AdminClassificationController{}, "*:AddApi")

	beego.Router("/admin/softlist", &controllers.AdminSoftListController{}, "*:Index")
	beego.Router("/admin/soft/add", &controllers.AdminSoftListController{}, "*:Add")
	beego.Router("/admin/soft/edit/:softid", &controllers.AdminSoftListController{}, "*:Edit")
	beego.Router("/admin/soft/api/getall", &controllers.AdminSoftListController{}, "*:GetAll")
	beego.Router("/admin/soft/api/add", &controllers.AdminSoftListController{}, "*:AddApi")
	beego.Router("/admin/soft/img/upload", &controllers.AdminSoftListController{}, "*:ImgUpLoad")
	beego.Router("/admin/soft/edittext/img/upload", &controllers.AdminSoftListController{}, "*:EditImgUpLoad")
}
